﻿@model EntryCodeElementViewModel

@{
	string brush = string.Empty;
	switch(this.Model.CodeType)	
	{
		case CodeSnippetType.CSharp:
			brush = "csharp";
			break;
		case CodeSnippetType.SQL:
			brush = "sql";
			break;
		case CodeSnippetType.JS:
			brush = "js";
			break;
		case CodeSnippetType.XML:
			brush = "xml";
			break;
		default:
			brush = "css";
			break;
	}
}

<div class="entryCodeSnippet">
	<pre class="brush: @brush;">
@this.Html.Raw(this.Model.Code)
	</pre>
</div>